from odoo import http, fields
from abc import ABC, abstractmethod


class APIShipOrder(http.Controller):

    # @abstractmethod
    # @http.route()
    # def api_test(self, **kw):
    #     pass
    #
    # @abstractmethod
    # @http.route()
    # def api_get_courier(self, **kw):
    #     pass
    #
    # @abstractmethod
    # @http.route(method=['GET'])
    # def get_package_type(self,**kw):
    #     """ 获取包裹类型 """
    #     pass

    @abstractmethod
    @http.route()
    def get_order_list(self, **kw):
        """ 获取订单列表 """
        pass

    @abstractmethod
    @http.route()
    def get_order(self, **kw):
        """ 获取订单（一个或多个） """
        pass
